package LeaveRequest_Handler_20;

import LeaveRequest_Handler_20.Handler.*;

public class LeaveRequestApplication {
    public static void main(String[] args) {
        LeaveRequest request = new LeaveRequest();
        request.setName("张三");
        request.setDays(10);

        TeamLeaderHandler teamLeaderHandler = new TeamLeaderHandler();
        ManagerHandler managerHandler = new ManagerHandler();
        DirectorHandler directorHandler = new DirectorHandler();

        teamLeaderHandler.setNextHandler(managerHandler);
        managerHandler.setNextHandler(directorHandler);

        teamLeaderHandler.handleRequest(request);

    }
}
